package com.cci.kangdao.service;

import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * 工单在线保修
 * @author zhangzhuang
 *
 */
public interface WorkOrderRepairService {
	
	/**
	 * 用户报修在线工单生成
	 * @param map
	 * @return
	 */
	public ModelAndView customerCreateWorkOrder(Map<String,Object> map);
	
	/**
	 * 服务站通过APP在线生成工单
	 * @param map
	 * @return
	 */
	public ModelAndView serviceStationCreateWorkOrder(Map<String,Object> map);
	
	/**
	 * 取消工单
	 * @param map
	 * @return
	 */
	public ModelAndView cancelWorkOrder(Map<String,Object> map);

	/**
	 * 校验工单状态
	 * @param map
	 */
	void validationWorkOrder(Map<String,Object> map);

	/**
	 * 获取工单超时原因接口
	 * @param map
	 */
	void getWorkOrderOverTimeReason(Map<String,Object> map);

	/**
	 * 工单超时原因
	 * @param map
	 */
	void workOrderOverTimeReason(Map<String,Object> map);

	/**
	 * 工单超时原因
	 * @param map
	 */
	void workOrderReason(Map<String,Object> map);

    /**
     * sprint24     更新  gsn和下拉原因
     *
     * @param request
     * @return
     */
    ModelAndView updateGsnOrSymptomName(HttpServletRequest request, HttpServletResponse response);

}
